<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\Route;

Route::get('/', 'index/Index/index');


/**
 *  user 控制器 路由
 */
Route::get('user', 'admin/user/index');
Route::get('admin/user/add', 'admin/user/add');
Route::post('admin/user/doadd', 'admin/user/doadd');
Route::get('admin/user/assignRoles', 'admin/user/assignRoles');
Route::post('admin/user/doassignRoles', 'admin/user/doassignRoles');


/**
 *  role 控制器 路由
 */
Route::get('role', 'admin/role/index');
Route::get('admin/role/addrole', 'admin/role/addrole');
Route::post('admin/role/dorole', 'admin/role/dorole');
Route::get('admin/role/status', 'admin/role/status');
Route::get('admin/role/assigna/:id', 'admin/role/assigna');
Route::post('admin/Role/doassigna', 'admin/Role/doassigna');


/**
 *  authority 控制器 路由
 */
Route::get('authority', 'admin/authority/index');
Route::get('admin/authority/add', 'admin/authority/add');
Route::post('admin/authority/doadd', 'admin/authority/doadd');


/**
 * 登录界面路由
 */
Route::get('admin', 'admin/index/index');
Route::post('admin/index/logindo', 'admin/index/logindo');
Route::get('admin/main/index', 'admin/main/index');



//return [
//
//];
